<?php
   //declare our variables
   $name = $_POST['name'];
   $email = $_POST['email'];
   $message = nl2br($_POST['message']);
   //get todays date
   $todayis = date("l, F j, Y, g:i a") ;
   //set a title for the message
   $subject = "Message from Your Website";
   $body = "From $name, nn$message";
   $headers = 'From: '.$email.'' . "rn" .
       'Reply-To: '.$email.'' . "rn" .
       'X-Mailer: PHP/' . phpversion();
   
   //put your email address here
   mail("asheknabi@gmail.com", $subject, $body, $headers);
   ?>
   <!--Display a thankyou message in the callback -->
   <div id="mail_response">
       <h3>Thank you <?php echo $name ?>!</h3><br />
       <p>I will answer your message soon as possible.</p><br />
       <h5>Message sent on: </h5>
       <p><?php echo $todayis ?></p>
</div> 